﻿<!--{inc(header.view.html)}-->

<div class="content" id="content">
	<div class="top-menu-box">
    	<div class="z">
            <span class="z-f"><a href="#">网站设置</a>&nbsp;&gt;</span>
            <span class="z-f"><a href="#">SX数据包管理</a></span>
            <div class="z-f-r"><span class="user-t"><a href="{$site_url}"  target="_blank">网站首页</a></span><span class="user-info"></span><a href="index.php?app=default&act=quit" onClick="return confirm('确认退出管理系统吗？');"   >退出管理</a></div>
        </div>
        <div class="top-menu">
        	<ul>
                                                 <li><a href="index.php?app=sx"  target="mainframe">SX数据包管理</a></li>			
            	<li class="current"><a href="#">SX数据包增加</a></li>
   

			
			
			</ul>
            <div class="clear"></div>
        </div>
    </div>
    
    <div class="main">


<style type="text/css">
.search_box {
padding:10px;
vertical-align:middle;
}
.search_box .l {
float:left;
vertical-align:middle;
}
.search_box .r {
float:right;
}
</style>
                                   
                                   
                                   
<form  method="post" action="?app=sx&act=daddpost" >
<div class="search_box">
<div class="l"><img  src="{$web_view_dir}style/images/it_nav.gif" align="middle">
<span class="bold">增加数据:</span>	       <select name="data[parent_id]" >
                                           <option value='0'>请选择分类...</option>
                                           
                                           <?php foreach((array)$sxdata as $_key => $_value ) { ?>
                                           
				<option value="{$_value.id}" >{$_value.str_pad}{$_value.name}</option>
                
                                            <?php } ?>
                                           </select>
                                           &nbsp;&nbsp;&nbsp;
                                           <input type="text" title="数据" value="" name="data[name]"> &nbsp;&nbsp;&nbsp;<input name="data[sort]" type="hidden" value="{$id}" /><input type="submit" value="提交" class="buton">

</div>

<div class="r">

</div>

</div>
</form>

<div class="clear"></div>
	
	
	
    <table  class="data" >
        <thead>
	
	<th>数据id</th>	
	<th>数据</th>

	<th>操作</th>	
		
        </thead>
	    <tbody>
		
<?php foreach((array)$sxdata as $_key => $_value ) { ?>
<tr  >
	<td  align="center">
	{$_value.id}

	</td>
	
	
	<td>
	<input type="text"   style="width: 400px; text-align: left;" value="{$_value.str_pad}{$_value.name}" name="{$_key}" onchange="ato_url('index.php?app=sx&act=deditpost&sid={$id}&did={$_value.id}',this);">

	</td>

   	

	<td>
	                  <a href="?app=sx&act=ddel&sid={$id}&did={$_value.id}" onClick="return confirm('确认删除此项？此操作无法恢复！');">删除</a>
	                                           </div>
                                               
	                                       
	</td>
</tr>

<?php } ?> 


	    </tbody>
    </table>
	

	
        
        <div class="notic"><img  src="{$web_view_dir}style/images/light.gif" align="absmiddle" /> <b>提示: </b> <span ></span> </div>
    </div>
</div>
<!--{inc(footer.view.html)}-->